<style type="text/css">
	table{
	   font-family: Arial;
       font-size: 10pt;
	}
    .tableTd {
	   	border-width: 0.5pt; 
		border: solid silver; 
	}
	.tableTdContent{
		border-width: 0.5pt; 
		border: solid silver;
	}
	#titles{
		font-weight: bolder;
        background-color: #B1D6AB;
	}
    .cd{
        font-family: Arial; 
        font-size: 12pt;
    } 
    .cdinfo{
        font-family: Arial; 
        font-size: 12pt;
        color:#0080FF;
    }
    .ds{
        font-family: Arial;
         color:green; 
         font-size: 16pt; 
    }
</style>
<center class="ds">Danh sách sinh viên</center>
<?php foreach($results as $cdid=>$zdssvs):?>
<?php if(!empty($zdssvs)):?>
<table>
        <tr>
		  <td colspan="4"><br /></td>
        </tr>
    	<tr>
    		<td colspan="2" class="cd"><b>Chi đoàn:</b></td>
    		<td colspan="4" class="cdinfo"><?php echo $zdssvs[0]['Zdssv']['tenchidoan']; ?></td>
    	</tr>
    	<tr>
    		<td colspan="2" class="cd"><b>Tổng số:</b></td>
    		<td style="text-align:left" class="cdinfo"><?php echo count($zdssvs);?></td>
    	</tr>
    	<tr>
    		<td></td>
    	</tr>
		<tr id="titles">
            <th class="tableTd"><?php __('STT');?></th>
			<th class="tableTd"><?php __('MSSV');?></th>
            <th class="tableTd"><?php __('Họ Tên');?></th>
            <th class="tableTd"><?php __('Phái');?></th>
            <th class="tableTd"><?php __('Ngày sinh');?></th>
            <th class="tableTd"><?php __('Nơi Sinh');?></th>
			<th class="tableTd"><?php __('Tôn giáo');?></th>
            <th class="tableTd"><?php __('Dân tộc');?></th>
			<th class="tableTd"><?php __('Phường xã');?></th>
			<th class="tableTd"><?php __('Địa chỉ');?></th>
			<th class="tableTd"><?php __('Số điện thoại');?></th>
			<th class="tableTd"><?php __('Email');?></th>
			<th class="tableTd"><?php __('Ngày vào đoàn');?></th>
			<th class="tableTd"><?php __('Nơi vào đoàn');?></th>
			<th class="tableTd"><?php __('Ngày vào đảng');?></th>
			<th class="tableTd"><?php __('Nơi vào đảng');?></th>
			<th class="tableTd"><?php __('Trưởng thành đoàn');?></th>
			<th class="tableTd"><?php __('Ghi chú');?></th>
		</tr>		
        <?php
        
	$i = 0;
	foreach ($zdssvs as $zdssv):
    $i++;
	?>
	<tr>
		<td class="tableTdContent">
			<?php echo $i; ?>
		</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['mssv']; ?>&nbsp;</td>
        <td class="tableTdContent"><?php echo $zdssv['Zdssv']['hoten']; ?>&nbsp;</td>
        <td class="tableTdContent"><?php echo $zdssv['Zdssv']['phai']; ?>&nbsp;</td>
        <td class="tableTdContent"><?php echo $zdssv['Zdssv']['ngaysinh']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['noisinh']; ?>&nbsp;</td>
        <td class="tableTdContent"><?php echo $zdssv['Zdssv']['tentongiao']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['tendantoc']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['tenphuongxa']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['diachi']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['sodienthoai']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['email']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['ngayvaodoan']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['noivaodoan']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['ngayvaodang']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['noivaodang']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['truongthanhdoan']; ?>&nbsp;</td>
		<td class="tableTdContent"><?php echo $zdssv['Zdssv']['ghichu']; ?>&nbsp;</td>
		
	</tr>
<?php endforeach; ?>
</table>
<?php endif;?>
<?php endforeach; ?>

